PaintPicture
Paints a picture
on an image.
Syntax: | imaG.PaintPicture picture , x1 , y1 , width1 , height1 , x2 , y2 , width2 , height2 , opcode |
picture (IPictureDisp) | The picture to be painted |
x1 (single) | The beginning horizontal position of the destination starting point. |
y1 (single) | The beginning vertical position of the destination starting point. |
width1 (single) | OPTIONAL - Destination image width (deafault : source image width) |
height1 (single) | OPTIONAL - Destination image height (deafault : source image height) |
x2 (single) | OPTIONAL - The beginning horizontal position of the source starting point (default : 0). |
y2 (single) | OPTIONAL : The beginning vertical position of the source starting point (default : 0). |
width2 (single) | OPTIONAL - Source image width (deafault : whole source image width) |
height2 (single) | OPTIONAL - Sorce image height (deafault : whole source image height) |
opcode (long) | OPTIONAL - RasterOpConstants (default : 13) |
This is a standard Microsoft Visual Basic method.
If MODE PROPERTY is NOT caModeDraw then an ERROR will be thrown.
If you are using this method
with a palettized image, then all the colors in the picture must
be contained in the image's palette. If it is not, then the
closest colors in the image's palette are used.